<div style="display:none;">
#session[:categories] =>    newCategories[e1.id] = newCategoryName
@categoriesNoRepeats = Hash.new
    session[:categories].each do |cat|

</div>
New Categories<br />
<% @counter = 0%>
<%= form_tag %>
<table class="tablesorter">
<thead>
<tr>
    <th>
        Create?
    </th>
    <th>
        Name
    </th>
    <th>
        Description
    </th>
<tr>
</thead>
<tbody>
    <% @categoriesNoRepeats.each do |cat| %>
        <tr>
            <td>
                <%= check_box_tag ("confirm_create" + @counter.to_s) %>
            </td>
            <td>            
                <%= cat[0] %>
                <%= text_field_tag "name" + @counter.to_s, cat[0], :style => "display:none;" %>
            </td>
            <td>
                <%= text_field_tag ("description" + @counter.to_s), "",:style => "width: 98%;" %>
            </td>
        <% @counter += 1 %>
        </tr>
    <% end %>
</tbody>
</table>
<%= submit_tag "Submit", :method => "post", :count => @counter  %>
 
    

